package com.disdr.bean;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class To自定义 {

    public static void main(String[] args) throws IOException {
        FileReader fileReader = new FileReader("src\\main\\java\\com\\disdr\\bean\\test.txt");
        BufferedReader br = new BufferedReader(fileReader);
        String line = br.readLine();
        for(;line!=null;line = br.readLine()){

            if(line.indexOf("private")>=0){
                String[] str = line.split(" ");
                String[] strr = str[str.length-1].split(";");
                System.out.println(strr[0]);
            }
        }
    }
}
